<h2>Welcome</h2>

<%=@join.name%> invited you to join his/her project called "<%=@join.project.name%>".<br/>
<br/>
<%
 if @join.invited_id != -1
 # should never see this msg since we do not send this link when the invited is already a member
%>
Since you already are a member of PTM, you just have to sign in and you will be redirected to a page where you will be able to accept this invitation.<br/>
<% else %>
This web site is just a project organizer. You can track tasks and manage projects.<br/>
If you accept this invitation you will be able to see all <%=@join.name%>'s tasks and will be able to contribute too.<br/>
You will be able to create your own projects and manage them as you like, invite other members as well.<br/>

<h2>Accept invitation</h2>
You have to create an account to accept this invitation.<br/>

<% form_tag :controller=>:account, :action=> :signup do %>

  <%= error_messages_for 'user' %><br/>
  
  <label for="user_login">Name:</label>
  <%= text_field "user", "name", :size => 30 %>Your real name<br/>
  <label for="user_login">Login:</label>
  <%= text_field "user", "login", :size => 30 %>Application login<br/>
  <label for="user_password">Password:</label>
  <%= password_field "user", "password", :size => 30 %><br/>
  <label for="user_password_confirmation">Confirm:</label>
  <%= password_field "user", "password_confirmation", :size => 30 %>Type your password again<br/>
  <%= hidden_field "user", "email", :size => 30, :value=>@join.email %>
  <input type="submit" value="Signup &#187;" class="submitbutton" />
<% end %>

<% end %>
